package com.tars.txappend.controller;

import com.tars.txappend.service.EndService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Franz 2022/3/14
 */
@RestController
@RequestMapping("/end")
public class EndController {

    @Autowired
    private EndService service;

    @RequestMapping("/test/{order}")
    public Boolean end(@PathVariable(value = "order",required = false)Integer order){
        service.endService(order);
        return true;
    }
}
